package com.yangaobo.service;

import com.github.pagehelper.PageInfo;
import com.yangaobo.dto.AssetsBorrowInsertDTO;
import com.yangaobo.dto.AssetsBorrowPageDTO;
import com.yangaobo.dto.AssetsBorrowUpdateDTO;
import com.yangaobo.entity.AssetsBorrow;
import com.yangaobo.excel.AssetsBorrowExcel;

import java.util.List;

/**
 * @author 杨奥博
 */
public interface AssetsBorrowService {
    int insert(AssetsBorrowInsertDTO dto);

    AssetsBorrow select(Long id);

    List<AssetsBorrow> list();

    PageInfo<AssetsBorrow> page(AssetsBorrowPageDTO dto);

    int update(AssetsBorrowUpdateDTO dto);

    int delete(Long id);

    int deleteBatch(List<Long> ids);

    List<AssetsBorrowExcel> getExcelData();

    int returnAssets(Long id);
}
